package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Report;
import com.qdu.mapper.ReportMapper;
import com.qdu.service.ReportService;

/**
 * StudentService接口的实现类，包含了Student相关的业务�?�辑的实�?
 * @author Anna
 */
@Service
public class ReportServiceImpl implements ReportService {

	@Autowired
	private ReportMapper reportMapper;
	
	@Override
	public List<Report> getreportById(String uid) {
		return reportMapper.selectbyuid(uid);
	}

	@Override
	public List<Report> getAll() {
		return reportMapper.selectAll();
	}

	@Override
	public void addReport(Report report) {
		reportMapper.insert(report);
	}

	@Override
	public void updateReport(Report report) {
		reportMapper.update(report);
	}

	@Override
	public void deleteReport(String uid) {
		reportMapper.delete(uid);
	}

	
}
